package org.jeecg.modules.market.service.impl;

import org.jeecg.modules.market.entity.RetailPurchase;
import org.jeecg.modules.market.mapper.RetailPurchaseMapper;
import org.jeecg.modules.market.service.IRetailPurchaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;
import java.util.Map;

/**
 * @Description: 零售情况
 * @Author: jeecg-boot
 * @Date:   2019-08-29
 * @Version: V1.0
 */
@Service
public class RetailPurchaseServiceImpl extends ServiceImpl<RetailPurchaseMapper, RetailPurchase> implements IRetailPurchaseService {

    @Autowired
    private RetailPurchaseMapper retailPurchaseMapper;
    @Override
    public List<Map<String,Object>> avgRetailPrice(String year){
        return retailPurchaseMapper.avgRetailPrice(year);
    }

    @Override
    public List<Map<String, Object>> avgRetailPriceByYear() {
        return retailPurchaseMapper.avgRetailPriceByYear();
    }
}
